Part Number Hot Search : 
MUN2215 06031 B400C N87C196 MAX4080 MB91F SIS12VB BDW93
Product Description
Full Text Search
 

To Download AN1702 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  september 2007 rev 2 1/11 AN1702 application note st485eb for e-meter applications introduction this application note explains the procedure for designing the rs-485 communication lines in energy metering applications which helps e-meter engineers build their projects. energy meters are used to monitor personal usage of electricity. in the past only one kind of e-meter was used which was an electromechanical device and required human intervention for the periodic on site data collection. the new frontier in energy metering is a new generation of electronic e-meters providing new features such as network data collection, auto-diagnosis and time-scheduled accounting differentiation in order to define different energy costs on differently defined time segments. these meters provide monitoring, analysis and data storage on energy usage. the network connection between meters allows for centralized data collection with the significant advantage that manual meter reading is no longer necessary. moreover, it makes locating meters easier, since external accessibility (in order to get a manual reading) is unnecessary. the network architecture can be of different types: bus, daisy chain, tree structure and so on. one of the most efficient is bus architecture. each meter is connected to the main bus through a stub, which is kept as short as possible. the communication should be bi- directional. each meter, in fact, needs to send data, as well as receive data from the central control, such as permission to send tariff upgrades, diagnostic routines, setups, etc. modern communication technologies offer several choices of communication with meters. one of these methods is the use of a twisted pair cable, using rs-485 differential transmission. it offers a wide choice of transceivers available on the market, high data rates over long line lengths, high noise rejection, and good electrical robustness that makes it suitable in rugged environments. www.st.com
contents AN1702 2/11 contents 1 rs-485 interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2 rs-485 advantages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3 signal levels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 4 bus lengths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 5 network isolation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 6 fail-safe biasing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 7 transient voltage suppression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 8 esd protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 9 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
AN1702 list of figures 3/11 list of figures figure 1. rs-485 half-duplex network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 figure 2. rs-485 full-duplex network. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 figure 3. dangerous ground shifts in a common situation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 figure 4. rs-485 terminal node with optocouplers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 figure 5. external fail-safe and line dc termination . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 figure 6. iec 61000-4-5 transient voltage test v and i waveforms . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 figure 7. usage of the transient voltage suppressors in the rs-485 network . . . . . . . . . . . . . . . . . . . 9
rs-485 interfaces AN1702 4/11 1 rs-485 interfaces with rs-485 two kinds of communication lines can be built: half or full duplex. a full duplex line requires four wires, and each node can simultaneously send data on two wires, while receiving from the other pair of wires. a half duplex line uses only one pair of wires for both sending and receiving, and in this case only one node at any one time can send data on the line (see figure 1 and figure 2 ). this means that two or more nodes, sending contemporaneously data to the bus, cause errors in data transmission. it is the application engineer?s responsibility to choose the proper network mana gement method in order to avoid this problem. this choice may be co nstrained by the need to use a pre-defined protocol on the network, or by the limitation of the calculated power of the network controller. figure 1. rs-485 half-duplex network figure 2. rs-485 full-duplex network
AN1702 rs-485 advantages 5/11 2 rs-485 advantages data transmission in e-meter applications occurs in noisy environments. meters are connected to the ac voltage, often located near industrial machinery or home appliances and the transmission line is often very long (hundreds of meters) allowing atmospheric noise to degrade signal quality. for these reasons, rs-485 signaling is particularly relevant. its differential drivers and receivers, reject external noise (theoretically coupled equally into both lines) with high field strength. project equipment using rs-485 signaling requires the application of some rules. differential lines must be kept close to each other, the use of a twisted pair cable is recommended and the board layout should be done with traces of equal length for the differential signals. impedance matching also has to be considered in order to avoid signal reflections. 3 signal levels rs-485 drivers must produce a differential output voltage of at least 1.5 v into a 54 ? load (usually the lines are terminated at both ends with a 120 ? resistor; each driver seeing a 120/2=60 ? load, 54 ? being the worst case (10% tolerance). receivers must detect a differential voltage as low as 200 mv. this is because if a degradation of the signal occurs across the line, the communication must not be affected. however, the driver differential output voltage depends on its output current capability. if many receivers are connected to the line, the driven load seen by the driver increases, as receivers are added to the bus, requiring more current. the rs-485 standard defines a unit load (ul), which is about a 12 k ? resistance over the bus voltage range interval (-7 to +12 v). rs-485 drivers must generate the required output minimum voltage (1.5 v) with at least 32 unit loads on a terminated bus with a 120 ? resistor on each end of the line. the st485eb is a half-duplex rs-485 transceiver with a low unit load. a network provided with these 1/8 ul transceivers allows interconnection of 256 nodes, driven by means of a standard compliant driver, without overloading it.
bus lengths AN1702 6/11 4 bus lengths the signal quality is evidently affected when the length of the bus increases. the most significant factor is the attenuation of the high frequency components of the signal. this produces slackening of the ri sing and falling edge of the signal as well as jitter and inter- symbol interference. all these factors must be taken into account when considering the cable length and signaling rate. most e-meter applications require signaling rates below 250 kbit/s. with these rates, the signal degradation is less evident for cable lengths up to 1 km. the st485eb is suitable for these signaling rates. its driver outputs have a slew rate limitation, which reduces emi and signal reflecti ons on the line, allowing very low signal degradation over long distances. 5 network isolation due to the long distance covered by the network, many factors such as ground loops, external noise, spikes, electrical storms, or common-mode voltages exceeding the maximum voltage range (-7 v to+12 v), can bother or, in some cases, damage the equipment connected to the ttl side of each transceiver (see figure 3 ). figure 3. dangerous ground shifts in a common situation in order to avoid this, it is advisable to electrically isolate the equipment from the bus. in figure 4 an example is shown of isolated transceivers, requiring the use of optocouplers at any single-ended (t tl input/output) terminal. note that two isolated power supplies are used: one for the transceivers and the related sides of the optocouplers connected to them (v bus ), the other one for the equipment and the other sides of the optocouplers (v ttl ). these two supplies should be isolated from each other, and derived from different power generators or transformer windings.
AN1702 network isolation 7/11 figure 4. rs-485 terminal node with optocouplers the choice of proper optocouplers should be based on rise and fall times, which are related to the signaling rate. the rs-485 requirements for the signal quality are that the rise (or fall) time should not exceed 30% of the bit time (reciprocal of the signaling rate). for a signaling rate of 250 kbit/s, the maximum rise or fall time of the optocouplers is: equation 1 therefore, an optocoupler with rise/fall times faster than 1.2 msec is required. the biasing resistors should be selected taking into account the current characteristics of the optocouplers, and the threshold voltages of the transceiver input pins, in order to ensure a reliable driving of the transceiver. v ttl v ttl v ttl v bus v bus v bus v bus r de re ro a b received data send/ receive control sent data st485e b v ttl v ttl v ttl v bus v bus v bus v bus r de re ro a b received data send/ receive control sent data st485e 0.3 ? (bit time)= 0.3 1 250 kbps ------------------------- ?? ?? 1.2 m sec =
fail-safe biasing AN1702 8/11 6 fail-safe biasing in an rs-485 network, a driver is always active on the line. therefore, each receiver has differential input voltages, which exceed the 200 mv minimum threshold voltage, ensuring a known logic state at its output. when a receiver is disconnected from the bus (receiver inputs floating), its output assumes an undetermined logic state. the st485eb has an internal fail-safe feature, which avoids this problem. a weak internal biasing ensures a receiver differential voltage higher than 200 mv, and therefore a valid logic state at its output under floating inputs conditions. a different situation occurs when there are no active drivers on the network (idle-bus). in this case, the receivers are connected to the bus and to the termination resistors. the termination resistors decrease the differential voltage near 0 v, and the internal fail-safe is not able to ensure a proper voltage level. some transmission protocol (for example the uart protocol) requires a high logic state of the bus when in idle state. in order to solve this problem, two biasing resistors should be applied to the two line wires, giving a proper biasing of the line (see also the application note "fail-safe biasing for st485"). in a terminated bus with a 120 ? termination resistor at each end, the equivalent resistance is 60 ? (120 ? /120 ? ). in order to produce a differential voltage at its leads higher than 200 mv, a current of 4 ma should flow into it. in order to guarantee this current without unmatching the characteristic impedance of the line, 500/600 ? resistors should be used (see figure 5 ). figure 5. external fail-safe and line dc termination the external fail-safe circuitry should be placed at one end of the bus or at each end of it, using, in this case, twice the value calculated for one biasing circuit (1 k/1.2 k ? ) and, of course, it should not be disconnected for any reason. the external fail-safe circuitry draws current; therefore it loads the driver outputs. this extra load should be taken in account defining the maximum number of transceivers allowed on the bus. the equivalent load of the fail-safe circuitry, seen by the active driver is, for ra = rc = 500 ? , 24ul. since the maximum allowed on the bus is 32ul, the available unit loads should be 32ul - 24ul = 8ul. using the st485eb (1/8ul per transceiver) the maximum number of transceivers should be: 8ul / (1/8ul per transceiver) = 64 transceivers.
AN1702 transient voltage suppression 9/11 7 transient voltage suppression transient voltage surges are generated generally by inductive load switching, for example, the equipment starts and stops, lightning strikes, etc. the standard iec 61000-4-5 immunity test describes a method to test circuits with a waveform simulating these conditions (see figure 6 ). figure 6. iec 61000-4-5 transient voltage test v and i waveforms surge voltages inducted on both differential lines do not affect the entire system operation, if the bus is isolated, and the ground voltage shift generated does not exceed the maximum ratings. however, the use of additional transient voltage suppressors (tvs) is advisable, in order to protect against surges in case of miswiring, incorrect grounding and other fault conditions. st offers a wide range of tvs. visit the site: http://eu.st.com/stonline/discre tes/index.shtml. th e selection criteria are the stand-off voltage (vrm), the clamping voltage (vcl) and the peak power dissipation (pd). the stand- off voltage must not exceed the operating common mode voltage range (-7 to +12 v), in order to avoid clamping during the normal operation, while the clamping voltage must be low enough to hold the line voltage with no damage to the protected circuits. the peak power dissipation is the product of the clamping volt age and the peak current that can be managed by the tvs without being harmed. one tvs suitable for a rs-485 network is the st?s sma12ca. it has: equation 2 figure 7. usage of the transient voltage suppressors in the rs-485 network v rm = v cl 19.9 v = @ i peak 20a ; = +/- 12 v ; p d 400 w = b
esd protection AN1702 10/11 8 esd protection common situations such as handling, connection and maintenance can create electro-static discharges (esd), which can damage related devices. the use of transceivers with high esd immunity in e-meter applications is recommended. in order to evaluate esd immunity, two standards are largely used at this time : the jedec standard (human body model), which simulates the esd of a human body contacting the device, and the iso standard (iec 61000-4-2), which simulates the esd of a human body handling a tool (screwdriver, or a metallic connector, etc.), approa ching (air discharge) or contac ting (contact discharge) the device. the iec 61036 standard requires that the device be immune to contact discharges (iso iec 61000-4-2) of 8 kv, while the dl/t 645 standard requires meter equipments to tolerate 15 kv (hbm) discharges. the st485eb is compliant to both these specifications. 9 revision history table 1. revision history date revision changes 11-sep-2006 1 first release 28-sep-2007 2 ? no content changes, document reformatted. ? st485er replaced by st485eb
AN1702 11/11 please read carefully: information in this document is provided solely in connection with st products. stmicroelectronics nv and its subsidiaries (?st ?) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described he rein at any time, without notice. all st products are sold pursuant to st?s terms and conditions of sale. purchasers are solely responsible for the choice, selection and use of the st products and services described herein, and st as sumes no liability whatsoever relating to the choice, selection or use of the st products and services described herein. no license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. i f any part of this document refers to any third party products or services it shall not be deemed a license grant by st for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoev er of such third party products or services or any intellectual property contained therein. unless otherwise set forth in st?s terms and conditions of sale st disclaims any express or implied warranty with respect to the use and/or sale of st products including without limitation implied warranties of merchantability, fitness for a parti cular purpose (and their equivalents under the laws of any jurisdiction), or infringement of any patent, copyright or other intellectual property right. unless expressly approved in writing by an authorized st representative, st products are not recommended, authorized or warranted for use in milita ry, air craft, space, life saving, or life sustaining applications, nor in products or systems where failure or malfunction may result in personal injury, death, or severe property or environmental damage. st products which are not specified as "automotive grade" may only be used in automotive applications at user?s own risk. resale of st products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by st for the st product or service described herein and shall not create or extend in any manner whatsoev er, any liability of st. st and the st logo are trademarks or registered trademarks of st in various countries. information in this document supersedes and replaces all information previously supplied. the st logo is a registered trademark of stmicroelectronics. all other names are the property of their respective owners. ? 2007 stmicroelectronics - all rights reserved stmicroelectronics group of companies australia - belgium - brazil - canada - china - czech republic - finland - france - germany - hong kong - india - israel - ital y - japan - malaysia - malta - morocco - singapore - spain - sweden - switzerland - united kingdom - united states of america www.st.com


▲Up To Search▲   

 
Price & Availability of AN1702

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X